package co.crossoft.domain;

import java.io.Serializable;
import java.util.Date;

public class Resource implements Serializable {
    private String handle;

    private String plant;

    private String resource;

    private String description;

    private String statusFk;

    private String dateEffect;

    private String dateExpire;

    private String dateCreate;

    private String dateUpdate;

    private static final long serialVersionUID = 1L;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getHandle() {
        return handle;
    }

    public void setHandle(String handle) {
        this.handle = handle == null ? null : handle.trim();
    }

    public String getPlant() {
        return plant;
    }

    public void setPlant(String plant) {
        this.plant = plant == null ? null : plant.trim();
    }

    public String getResource() {
        return resource;
    }

    public void setResource(String resource) {
        this.resource = resource == null ? null : resource.trim();
    }

    public String getStatusFk() {
        return statusFk;
    }

    public void setStatusFk(String statusFk) {
        this.statusFk = statusFk == null ? null : statusFk.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Resource other = (Resource) that;
        return (this.getHandle() == null ? other.getHandle() == null : this.getHandle().equals(other.getHandle()))
                && (this.getPlant() == null ? other.getPlant() == null : this.getPlant().equals(other.getPlant()))
                && (this.getResource() == null ? other.getResource() == null : this.getResource().equals(other.getResource()))
                && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
                && (this.getStatusFk() == null ? other.getStatusFk() == null : this.getStatusFk().equals(other.getStatusFk()))
                && (this.getDateEffect() == null ? other.getDateEffect() == null : this.getDateEffect().equals(other.getDateEffect()))
                && (this.getDateExpire() == null ? other.getDateExpire() == null : this.getDateExpire().equals(other.getDateExpire()))
                && (this.getDateCreate() == null ? other.getDateCreate() == null : this.getDateCreate().equals(other.getDateCreate()))
                && (this.getDateUpdate() == null ? other.getDateUpdate() == null : this.getDateUpdate().equals(other.getDateUpdate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getHandle() == null) ? 0 : getHandle().hashCode());
        result = prime * result + ((getPlant() == null) ? 0 : getPlant().hashCode());
        result = prime * result + ((getResource() == null) ? 0 : getResource().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getStatusFk() == null) ? 0 : getStatusFk().hashCode());
        result = prime * result + ((getDateEffect() == null) ? 0 : getDateEffect().hashCode());
        result = prime * result + ((getDateExpire() == null) ? 0 : getDateExpire().hashCode());
        result = prime * result + ((getDateCreate() == null) ? 0 : getDateCreate().hashCode());
        result = prime * result + ((getDateUpdate() == null) ? 0 : getDateUpdate().hashCode());
        return result;
    }

    public String getDateEffect() {
        return dateEffect;
    }

    public void setDateEffect(String dateEffect) {
        this.dateEffect = dateEffect;
    }

    public String getDateExpire() {
        return dateExpire;
    }

    public void setDateExpire(String dateExpire) {
        this.dateExpire = dateExpire;
    }

    public String getDateCreate() {
        return dateCreate;
    }

    public void setDateCreate(String dateCreate) {
        this.dateCreate = dateCreate;
    }

    public String getDateUpdate() {
        return dateUpdate;
    }

    public void setDateUpdate(String dateUpdate) {
        this.dateUpdate = dateUpdate;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}